const KEY = 'heimamm66-token';

// 保存token
const saveToken = (token) => {
	localStorage.setItem(KEY, token);
};

// 获取token
const getToken = (token) => {
	return localStorage.getItem(KEY);
};

// 移除token
const removeToken = (token) => {
	localStorage.removeItem(KEY);
};

// {} 在刺客就是一个按需导出的标志, 不要想成对象
export { saveToken, getToken, removeToken };
